package TestDay;

public class Array02 {
    public static void main(String[] args) {
        int[] arr = {20, 51, 26, 35, 68, 95, 35};
        System.out.println(getMax(arr));
    }



    public static int getMax(int[] arr) {
        int max = 0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] > max) {
                max = arr[i];
            }
        }
        return max;
    }
}